package com.bk.bookviews.exception;

public enum BusinessExceptionEnum {

	PHONE_IS_NULL("10000","登录账号不能为空！"),
    NAME_IS_NULL("10001","用户名不能为空！"),
    PWD_IS_NULL("10002","密码不能为空！"),
    USER_IS_NULL("10003","用户不存在！"),
    PWD_IS_ERROR("10004","密码错误！"),
    TOKEN_IS_NULL("10005","token不能为空！"),
    LOGON_FAILURE("10006","登录失效！"),
    USER_IS_EXIST("10007","用户已存在！"),
    USER_STATUS_ERROR("10008","用户状态异常，请来联系管理员处理！"),
    USER_ID_IS_NULL("10009","用户id不能为空！"),
    USER_NOT_EXIST("10010","用户不存在！"),
    PHONE_REPEAT("10011","该手机号已经注册！"),
    UPLOAD_IMAGE_IS_NULL("10012","上传图片为空"),
    UPLOAD_FILE_NOT_IMAGE("10013","上传文件非图片"),
    PAGE_IS_NULL("10014","分页参数为空！"),
    PAGE_ARGS_IS_NULL("10015", "分页参数不全，请检查pageNum和pageSize是否都传入！"),
    SCENIC_NAME_IS_NULL("10016", "景点名称不能为空！"),
    SCENIC_AREA_IS_NULL("10017", "景点所属区域不能为空！"),
    SCENIC_PRICE_ISNULL("10018", "景区门票价格不能为空！"),
    SCENIC_ID_IS_NULL("10019","景点id不能为空！"),
    SCENIC_NOT_EXIST("10020","景点不存在！"),
    SOURCE_ISNULL("10021", "用户未登录时,查询来源不能为空！"),
    TITLE_NAME_IS_NULL("10022", "标签名称不能为空！"),
    BOOK_TIME_ISNULL("10023", "预约时间不能为空！"),
    DATE_ERROR("10024", "预约日期不能小于当前日期！"),
    SCENIC_BOOK_IS_FULL("10025", "景点预约人数已满！"),
    SCENIC_BOOK_IS_REPEAT("10026", "该景点已预约过，不能重复预约！"),
    ORDER_NOT_EXIST("10027","订单不存在！"),
    BOOK_TIME_OUT("10028","已超过订单预约时间，不能取消！"),
    SCENIC_STATU_ERROR("10029","景点状态有误，不能预约！"),
    COMMENT_ID_IS_NULL("10030","评论id不能为空！"),
    ORDER_ID_IS_NULL("10031","订单id不能为空！"),
    ORDER_STATUS_ERROR("10032","订单状态不正确！"),
    //USER_ID_IS_NULL("10009","用户id不能为空！"),
/*
    TIME_ERROR("10017", "该时段已有预约存在！"),
    ROOM_PRICE_ISNULL("10018", "房间单价不能为空！"),


    ROOM_PAY_ATTENTION("10023","该房间已关注！"),
    DATE_ERROR("10024", "预约开始日期不能小于当前日期！"),*/
    ;
    private String code;
    private String errMsg;
    private String enUsErrMsg;   //英文错误信息

    private BusinessExceptionEnum(String code, String errMsg, String enUsErrMsg){
        this.code = code;
        this.errMsg = errMsg;
        this.enUsErrMsg = enUsErrMsg;
    }

    private BusinessExceptionEnum(String code, String errMsg){
        this.code = code;
        this.errMsg = errMsg;
    }

    public String getCode() {
        return code;
    }

    public String getErrMsg() {
        return errMsg;
    }

    public String getEnUsErrMsg() {
        return enUsErrMsg;
    }
}
